#include <stdio.h>
int main(void)
{
	printf("Please input days\n");
	int day;
	scanf_s("%d\n",&day);
	while(day>0)
	{
		scanf_s("%d\n", &day);
		int week = day / 7;
		int days = day % 7;
		printf("%d days are %d weeks,%d days.(<=0 to quit)\n", day, week, days);
	}
	return 0;
}